package com.britecloud.cloud.web;

import com.britecloud.cloud.service.SampleService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/message")
public class SampleController {

    @Autowired
    private SampleService sampleService;

    @ApiOperation(value = "获取消息", notes = "")
    @RequestMapping(method = RequestMethod.GET)
    String home() {
        return sampleService.getMessage();
    }

}